cmake_minimum_required(VERSION 3.15)
project(Matching)

message(STATUS "project-name: Matching")
message(STATUS "project-directory: ${PROJECT_SOURCE_DIR}")

#set(CMAKE_C_FLAGS_DEBUG "-Wall -fPIC -Wno-strict-aliasing -Wno-uninitialized -g -rdynamic -std=gnu99")

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)

include_directories(
        /usr/include/mysql
        /usr/local/include
)

link_directories(
        /usr/local/lib
        /usr/lib64/mysql
        ${PROJECT_BINARY_DIR}/lib
)

add_subdirectory(network)
add_subdirectory(utils)
add_subdirectory(alertcenter)
add_subdirectory(marketprice)
add_subdirectory(matchengine)
add_subdirectory(readhistory)
add_subdirectory(accesshttp)
add_subdirectory(accessws)
add_subdirectory(test)
